-- BUGS
-- In column mode, if only folders are selected, it doesn't work as expected
-- The selection is only the last folder of the window.
-- Works fine in other view mode
-- If you do know how to fix this, please help
on run argv
	set toselectList to {}

	repeat with thearg in argv
		set end of toselectList to POSIX file thearg 
	end repeat
	
	tell application "Finder"
		activate
        set selectionList to {} & selection as list
		(select every item of toselectList)
	end tell
end run
